﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Database.Model.Customers>" %>
<%@ Import Namespace="CRM.AuthorizedActionLink.Html" %>
<%@ Import Namespace="CRM.Resourses" %>

<% //if(DB.TrainingsRequestCustomerValidation(Model.IdCustomer))
   if (Model.IsReadyForRequests)
   { %>
    <table>
        <tr>
            <td>
                <%--<%:Html.ActionLinkAuthorized(Resourses.TrainingsMakePlannedRequest, "TraningsSchedulesRequest", "TC", new {customerId = Model.IdCustomer})%>--%>

                <%= Html.ActionLink(Resourses.TrainingsMakePlannedRequest, "TraningsSchedulesRequest", "TC", new { customerId = Model.IdCustomer }, null)%>
            </td>
        </tr>
        <tr>
            <td>
                <%--<%:Html.ActionLinkAuthorized(Resourses.TrainingsMakeRemoteRequest, "TrainingsRemoteCoursesRequest", "TC", new { customerId = Model.IdCustomer })%>--%>

                <%= Html.ActionLink(Resourses.TrainingsMakeRemoteRequest, "TrainingsRemoteCoursesRequest", "TC", new { customerId = Model.IdCustomer }, null)%>
            </td>
        </tr>
        <tr>
            <td>
                <%--<%:Html.ActionLinkAuthorized(Resourses.TrainingsMakeWebinarRequest, "TrainingsWebinarRequest", "TC", new { customerId = Model.IdCustomer })%>--%>

                <%= Html.ActionLink(Resourses.TrainingsMakeWebinarRequest, "TrainingsWebinarRequest", "TC", new { customerId = Model.IdCustomer }, null)%>
            </td>
        </tr>
    </table>
  <% }else{ %>
          <p> Не найдено ни одного Юр. Лица с заполненными контактами (ФИО, телефон, e-mail)! Эта информация необходима для оформления заявки на обучение. </p>
        <% } %>

<br />
<p><%: Resourses.TrainingRequestsHistory%></p>
<%: Html.Partial("CustomerTrainingRequestsPartial", Model.IdCustomer)%>
